package org.wk.account.enums;



/**
 * @ClassName	: ZhongChangeType
 * @Package		：org.wk.digiccy.enums
 * @Author df.w 
 * @Create Time	：2018年5月9日 下午5:43:55
 * @Description	: 鲸种变动类型
 */ 
public enum ZhongChangeType {
	RECHARGE("recharge","充值"),
	ACTIVATE_ONESELF("activate_oneself","激活自己"),
	ACTIVATE_OTHERS("activate_others","激活他人"),
	FROM_ZAI("from_zai","鲸仔兑换"),
	FROM_BAO("from_bao","鲸宝兑换");
	private String code;
	private String name;
	private ZhongChangeType(String code, String name) {
		this.code = code;
		this.name = name;
	}
	
	
	public static ZhongChangeType containsCode(String code) {
		for (ZhongChangeType item : ZhongChangeType.values()) {
			if (item.getCode().equals(code)) {
				return item;
			}
		}		
		return null;
	}
			
	/**
	 * @return the code
	 */
	
	public String getCode() {
		return code;
	}
	
	/**
	 * @param code 要设置的 code
	 */
	
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * @return the name
	 */
	
	public String getName() {
		return name;
	}
	
	/**
	 * @param name 要设置的 name
	 */
	
	public void setName(String name) {
		this.name = name;
	}
	
}
